package com.weimei.conversionTreasure.http.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class YMonthDetailBean extends BaseResult{
    @SerializedName("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("priceSum")
        private double priceSum;
        @SerializedName("totalNumber")
        private int totalNumber;
        @SerializedName("rDay")
        private List<RDayDTO> rDay;

        public double getPriceSum() {
            return priceSum;
        }

        public void setPriceSum(double priceSum) {
            this.priceSum = priceSum;
        }

        public int getTotalNumber() {
            return totalNumber;
        }

        public void setTotalNumber(int totalNumber) {
            this.totalNumber = totalNumber;
        }

        public List<RDayDTO> getRDay() {
            return rDay;
        }

        public void setRDay(List<RDayDTO> rDay) {
            this.rDay = rDay;
        }

        public static class RDayDTO {
            @SerializedName("date")
            private String date;
            @SerializedName("Price")
            private String price;
            @SerializedName("dealData")
            private List<DealDataDTO> dealData;

            public String getDate() {
                return date.replace("0:00:00","");
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public List<DealDataDTO> getDealData() {
                return dealData;
            }

            public void setDealData(List<DealDataDTO> dealData) {
                this.dealData = dealData;
            }

            public static class DealDataDTO {
                @SerializedName("id")
                private int id;
                @SerializedName("className")
                private String className;
                @SerializedName("notes")
                private String notes;
                @SerializedName("price")
                private double price;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getClassName() {
                    return className;
                }

                public void setClassName(String className) {
                    this.className = className;
                }

                public String getNotes() {
                    return notes;
                }

                public void setNotes(String notes) {
                    this.notes = notes;
                }

                public String getPrice() {
                    return price+"";
                }

                public void setPrice(double price) {
                    this.price = price;
                }
            }
        }
    }
}
